{php include wl_template('common/header');}
<ul class="nav nav-tabs">
    <li class="active"><a href="javascript:;">参与记录</a></li>
</ul>
<div class="app-content">
    <div class="panel panel-stat">
        <div class="panel-body">
            <div class="col-md-3">
                <div class="title">今日参与(人)</div>
                <div class="num-wrapper">
                    <a class="num" href="javascript:;">{$today_num}</a>
                </div>
            </div>
            <div class="col-md-3">
                <div class="title">昨天参与(人)</div>
                <div class="num-wrapper">
                    <a class="num" href="javascript:;">{$yestoday_num}</a>
                </div>
            </div>
            <div class="col-md-3">
                <div class="title">七日参与(人)</div>
                <div class="num-wrapper">
                    <a class="num" href="javascript:;">{$week_num}</a>
                </div>
            </div>
            <div class="col-md-3">
                <div class="title">累计参与(人)</div>
                <div class="num-wrapper">
                    <a class="num" href="javascript:;">{$all_num}</a>
                </div>
            </div>
        </div>
    </div>
    <div class="app-table-list">
        {if !empty($lists)}
        <div class="table-responsive">
            <table class="table table-hover table-bordered">
                <thead>
                <tr>
                    <th class="text-center">ID</th>
                    <th class="text-center">参与用户</th>
                    <th class="text-center">邀请用户</th>
                    <th class="text-center">参与排名</th>
                    <th class="text-center">扫描次数</th>
                    <th class="text-center">邀请人数</th>
                    <th class="text-center">参与时间</th>
                </tr>
                </thead>
                <tbody>
                {loop $lists $list}
                <tr class="text-center">
                    <td>
                        {$list['id']}
                    </td>
                    <td class="name text-left">
                        <div style="display: flex">
                            <img class="img-40" src="{$list['member']['avatar']}" style="border-radius:50%;border:1px solid #efefef;" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/nopic-small.jpg'" height="40" width="40">
                            <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
                                    {$list['member']['nickname']}
                                </span>
                        </div>
                    </td>
                    <td class="name text-left">
                        {if !empty($list['invite_member'])}
                        <div style="display: flex">
                            <img class="img-40" src="{$list['invite_member']['avatar']}" style="border-radius:50%;border:1px solid #efefef;" onerror="this.src='../addons/{MODULE_NAME}/web/resource/images/nopic-small.jpg'" height="40" width="40">
                            <span style="display: flex;flex-direction: column;justify-content: center;align-items: flex-start;padding-left: 5px">
                                    {$list['invite_member']['nickname']}
                                </span>
                        </div>
                        {else}
                        --
                        {/if}
                    </td>
                    <td>
                        {$list['sort']}位
                    </td>
                    <td>
                        {$list['scan_times']}次
                    </td>
                    <td>
                        {php echo intval($list['invite_num']);}人
                    </td>
                    <td>
                        {$list['createtime']}
                    </td>
                </tr>
                {/loop}
                </tbody>
            </table>
        </div>
        <div class="app-table-foot clearfix">
            <div class="pull-left">
            </div>
            <div class="pull-right">
                {$pager}
            </div>
        </div>
        {else}
        <div class="no-result">
            <p>还没有相关数据</p>
        </div>
        {/if}
    </div>
</div>
{php include wl_template('common/footer');}